<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>

<html>
  <head>
    
    <title>制造运输单</title>
		<META http-equiv=Content-Type content="text/html; charset=utf-8">

		<STYLE type=text/css>
a {
	text-decoration: none;
	COLOR: white
}

.a_a {
	text-decoration: none;
	COLOR: black
}

.gridView {
	BORDER-RIGHT: #bad6ec 1px;
	BORDER-TOP: #bad6ec 1px;
	BORDER-LEFT: #bad6ec 1px;
	COLOR: #566984;
	BORDER-BOTTOM: #bad6ec 1px;
	FONT-FAMILY: Courier New;
	OVERLOW-X: AUTO;
}

.gridViewHeader {
	BORDER-RIGHT: #bad6ec 1px solid;
	BORDER-TOP: #bad6ec 1px solid;
	BACKGROUND-IMAGE: url(../images/bg_th.gif);
	BORDER-LEFT: #bad6ec 1px solid;
	LINE-HEIGHT: 27px;
	BORDER-BOTTOM: #bad6ec 1px solid
}

.gridViewItem {
	BORDER-RIGHT: #bad6ec 1px solid;
	BORDER-TOP: #bad6ec 1px solid;
	BORDER-LEFT: #bad6ec 1px solid;
	LINE-HEIGHT: 32px;
	BORDER-BOTTOM: #bad6ec 1px solid;
	TEXT-ALIGN: center
}

.cmdField {
	BORDER-RIGHT: 0px;
	BORDER-TOP: 0px;
	BACKGROUND-IMAGE: url(../images/bg_rectbtn.png);
	OVERFLOW: hidden;
	BORDER-LEFT: 0px;
	WIDTH: 67px;
	COLOR: #364c6d;
	LINE-HEIGHT: 27px;
	BORDER-BOTTOM: 0px;
	BACKGROUND-REPEAT: repeat-x;
	HEIGHT: 27px;
	BACKGROUND-COLOR: transparent;
	TEXT-DECORATION: none
}

.buttonBlue {
	BORDER-RIGHT: 0px;
	BORDER-TOP: 0px;
	BACKGROUND-IMAGE: url(../images/bg_button_blue.gif);
	BORDER-LEFT: 0px;
	WIDTH: 78px;
	COLOR: white;
	BORDER-BOTTOM: 0px;
	BACKGROUND-REPEAT: no-repeat;
	HEIGHT: 21px body {     font :   9px
}

}
html {
	overflow-x: auto;
	overflow-y: auto;
}
</STYLE>
		<link href="../login.files/public.css" rel="stylesheet"
			style="text/css">

		<META content="MSHTML 6.00.2900.5848" name=GENERATOR>
		<script type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>
  </head>
  
  <body style="BACKGROUND-POSITION-Y: -120px; BACKGROUND-IMAGE: url(../images/bg.gif); BACKGROUND-REPEAT: repeat-x">
   <SCRIPT type=text/javascript>
//<![CDATA[
function turnpage(){
	var curPage=document.getElementById("page").value;
	window.location.href="transportAction_getlibrarylist.action?bean.pageon="+curPage;
}
//]]>
</SCRIPT>

<DIV>
			<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%"
				border=0>
				<TBODY>
					<TR
						style="BACKGROUND-IMAGE: url(../images/bg_header.gif); BACKGROUND-REPEAT: repeat-x"
						height=47>
						<TD width=10>
							<SPAN
								style="FLOAT: left; BACKGROUND-IMAGE: url(../images/main_hl.gif); WIDTH: 15px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 47px">
							</SPAN>
						</TD>
						<TD>
							<SPAN
								style="FLOAT: left; BACKGROUND-IMAGE: url(../images/main_hl2.gif); WIDTH: 15px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 47px">
							</SPAN>
							<SPAN
								style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; FLOAT: left; BACKGROUND-IMAGE: url(../images/main_hb.gif); PADDING-BOTTOM: 10px; COLOR: white; PADDING-TOP: 10px; BACKGROUND-REPEAT: repeat-x; HEIGHT: 47px; TEXT-ALIGN: center; 0 px: ">
								添加运输单</SPAN><SPAN
								style="FLOAT: left; BACKGROUND-IMAGE: url(../images/main_hr.gif); WIDTH: 60px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 47px"></SPAN>
						</TD>
						<TD
							style="BACKGROUND-POSITION: 50% bottom; BACKGROUND-IMAGE: url(../images/main_rc.gif)"
							width=10></TD>
					</TR>
					<TR>
						<TD style="BACKGROUND-IMAGE: url(../images/main_ls.gif)">
							&nbsp;
						</TD>
						<TD
							style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; COLOR: #566984; PADDING-TOP: 10px; BACKGROUND-COLOR: white"
							vAlign=top align="center">
							<DIV>
								<TABLE class=gridView id=ctl00_ContentPlaceHolder2_GridView1
									style="WIDTH: 100%; BORDER-COLLAPSE: collapse" cellSpacing=0
									rules=all border=1>
									<TBODY>
										<form action="transportAction_getlibrarylist.action" method="post">
											出库单号
											<input type="text" name="msn" />
											出库单人
											<input type="text" name="mstaff" />
											<input type="submit" value="查询">
										</form>
										<TR>
											<TH class=gridViewHeader style="WIDTH: 50px" scope=col>
												&nbsp;
											</TH>
											<TH class=gridViewHeader scope=col>
												出库单编号 
											</TH>
											<TH class=gridViewHeader scope=col>
												操作人员
											</TH>
											<TH class=gridViewHeader scope=col>
												商品编号
											</TH>
											<TH class=gridViewHeader scope=col>
												商品名称
											</TH>
											<TH class=gridViewHeader scope=col>
												数量
											</TH>
											
											<TH class=gridviewHeader scope=col colspan="4">
												操作
											</TH>
										</TR>
										<s:iterator value="libraryList">
											<TR>
												<TD class=gridViewItem style="WIDTH: 50px">
													<IMG src="../images/bg_users.gif">
												</TD>
												<TD class=gridViewItem>
													<s:property value="sn" />
												</TD>
												<TD class=gridViewItem>
													<s:property value="library.staff.name" />
												</TD>
												<TD class=gridViewItem>
													<s:property value="commodity.sn" />
												</TD>
												<TD class=gridViewItem>
													<s:property value="commodity.name" />
												</TD>
												<TD class=gridViewItem>
													<s:property value="quantity" />
												</TD>
												
												<TD class=gridViewItem>	
													<a class=cmdField 
													href="transportAction_insertlist.action?type=insert&id=<s:property value="id" />">添加</a>
												</TD>
												
											</TR>
										</s:iterator>
										<s:if test="pb.list.size==0">
										  <tr>
										      <td>
										     没有找到相关记录!!!!
										      </td>
										  </tr>
										</s:if>
									</TBODY>
									<TR>
										<TD colspan="25" align="right" class=gridViewHeader>
											总共有
											<s:property value="bean.totalitem" />
											条记录 每页
											<s:property value="bean.pagesize" />
											条记录 当前为第
											<s:property value="bean.pageon" />
											页/ 总共有
											<s:property value="bean.totalpage" />
											页
												
											    <a class="a_a" href="transportAction_getlibrarylist.action?bean.pageon=1">首页</a>
 											<a class="a_a" href="transportAction_getlibrarylist.action?bean.pageon=<s:property value='bean.prep'/>">上一页</a>
   											 <a class="a_a" href="transportAction_getlibrarylist.action?bean.pageon=<s:property value='bean.nextp'/>">下一页</a>
  											<a class="a_a" href="transportAction_getlibrarylist.action?bean.pageon=<s:property value='bean.totalpage'/>">尾页</a>
												
												
											转到第
											<input type="text" id="page" size="1" />
											页
											<input type="submit" value="Go" class="textbox"
												onclick="javascript:turnpage();" />
										</TD>
									</TR>
									<tr>
				<td colspan="11">
				<form action="transportAction_inserttransport.action" method="post">
				运输单号：<input type="text" name="danhao" value="<s:property value="danhao" />" disabled="disabled"/>制单人:<s:property value="#session.userinfo.name"/>
				运输日期：  <input type="text" name="tractime" onfocus="WdatePicker()" value="<s:property value="tractime" />"/>
				<input type="submit" name="Submit" value="制运输单"></p>
				<p><span class="STYLE1">已选择运输列表</span></p>
				</form>
			    </td>
			    </tr>
			
                 <TR>
						<TH class=gridViewHeader style="WIDTH: 50px" scope=col>
												&nbsp;
											</TH>
											<TH class=gridViewHeader scope=col>
												出库单号
											</TH>
											<TH class=gridViewHeader scope=col>
												办理人
											</TH>
											<TH class=gridViewHeader scope=col>
												商品编号
											</TH>
											<TH class=gridViewHeader scope=col>
												商品名称
											</TH>
											<TH class=gridViewHeader scope=col>
												数量
											</TH>
											
											<TH class=gridviewHeader scope=col colspan="4">
												操作
											</TH>
                 							</TR>
										<s:iterator value="list">
											<TR>
												<TD class=gridViewItem style="WIDTH: 50px">
													<IMG src="../images/bg_users.gif">
												</TD>
												<TD class=gridViewItem>
													<s:property value="sn" />
												</TD>
												<TD class=gridViewItem>
													<s:property value="library.staff.name" />
												</TD>
												<TD class=gridViewItem>
													<s:property value="commodity.sn" />
												</TD>
												<TD class=gridViewItem>
													<s:property value="commodity.name" />
												</TD>
												<TD class=gridViewItem>
													<s:property value="quantity" />
												</TD>
												
												<TD class=gridViewItem>	
													<a class=cmdField 
													onclick="return confirm('确定要删除吗？');"
													href="transportAction_insertlist.action?type=delete&id=<s:property value="id" />">删除</a>
												</TD>
												
											</TR>
										</s:iterator>
									
								</TABLE>
							</DIV>
						</TD>
						<TD style="BACKGROUND-IMAGE: url(../images/main_rs.gif)"></TD>
					</TR>
					<TR
						style="BACKGROUND-IMAGE: url(../images/main_fs.gif); BACKGROUND-REPEAT: repeat-x"
						height=10>
						<TD style="BACKGROUND-IMAGE: url(../images/main_lf.gif)"></TD>
						<TD style="BACKGROUND-IMAGE: url(../images/main_fs.gif)"></TD>
						<TD style="BACKGROUND-IMAGE: url(../images/main_rf.gif)">
						</TD>
					</TR>
				</TBODY>
			</TABLE>
		</DIV>
  </body>
</html>
